package hl.fildir;

import java.io.*;

public class PrintStreamTest {
    public static void main(String[] args){

        try ( var ps = new PrintStream(new FileOutputStream("FileOutPutStream.txt"))  )
        {
            System.setOut(ps);

            ps.println("\t雨幕");
            ps.println("\t--许嵩");
            ps.println();
            ps.println("窗外萧萧的雨幕里");
            ps.println("飘然一曲诱我侧耳听");
            ps.println("水面萧中剑的倒影");
            ps.println("是爱中藏恨的诗句");
            ps.println();
            ps.println("我从萧萧的雨幕里");
            ps.println("遥望潞雪千山都过尽");
            ps.println("隔海隔山你的背景");

//            ps.println();
//            ps.println();
//            ps.println("hello");
//            ps.println("hello");

        }
        catch (IOException ioe)
        {
            ioe.printStackTrace();
        }
    }
}
